<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ScittbfadeceEditDlg" widgetVar="ScittbfadeceEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditScittbfadeceTitle}">

            <h:form id="ScittbfadeceEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{scittbfadeceController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditScittbfadeceLabel_scittbfadeceid}" for="scittbfadeceid" />
                        <h:outputText id="scittbfadeceid" value="#{scittbfadeceController.selected.scittbfadeceid}" />

                        <p:outputLabel value="#{myBundle.EditScittbfadeceLabel_nombre}" for="nombre" />
                        <p:inputText id="nombre" value="#{scittbfadeceController.selected.nombre}" title="#{myBundle.EditScittbfadeceTitle_nombre}" required="true" requiredMessage="#{myBundle.EditScittbfadeceRequiredMessage_nombre}"/>

                        <p:outputLabel value="#{myBundle.EditScittbfadeceLabel_facultad}" for="facultad" />
                        <p:selectBooleanCheckbox id="facultad" value="#{scittbfadeceController.selected.facultad}" required="true" requiredMessage="#{myBundle.EditScittbfadeceRequiredMessage_facultad}"/>

                        <p:outputLabel value="#{myBundle.EditScittbfadeceLabel_siglas}" for="siglas" />
                        <p:inputText id="siglas" value="#{scittbfadeceController.selected.siglas}" title="#{myBundle.EditScittbfadeceTitle_siglas}" required="true" requiredMessage="#{myBundle.EditScittbfadeceRequiredMessage_siglas}"/>

                        <p:outputLabel value="#{myBundle.EditScittbfadeceLabel_direccion}" for="direccion" />
                        <p:inputText id="direccion" value="#{scittbfadeceController.selected.direccion}" title="#{myBundle.EditScittbfadeceTitle_direccion}" required="true" requiredMessage="#{myBundle.EditScittbfadeceRequiredMessage_direccion}"/>

                        <p:outputLabel value="#{myBundle.EditScittbfadeceLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{scittbfadeceController.selected.observaciones}" title="#{myBundle.EditScittbfadeceTitle_observaciones}" />

                        <p:outputLabel value="#{myBundle.EditScittbfadeceLabel_scthtbdatosgenid}" for="scthtbdatosgenid" />
                        <p:selectOneMenu filter="true" filterMatchMode="contains" id="scthtbdatosgenid" value="#{scittbfadeceController.selected.scthtbdatosgenid}" required="true" requiredMessage="#{myBundle.EditScittbfadeceRequiredMessage_scthtbdatosgenid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scthtbdatosgenController.items}"
                                           var="scthtbdatosgenidItem"
                                           itemValue="#{scthtbdatosgenidItem}"
                                          itemLabel="#{scthtbdatosgenidItem.cedula.toString()} #{scthtbdatosgenidItem.apellidopat.toString()} #{scthtbdatosgenidItem.apellidomat.toString()} #{scthtbdatosgenidItem.nombres.toString()}"
                                           />
                            <f:converter binding="#{scthtbdatosgenConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditScittbfadeceLabel_scintborganismid}" for="scintborganismid" />
                        <p:selectOneMenu id="scintborganismid" value="#{scittbfadeceController.selected.scintborganismid}" required="true" requiredMessage="#{myBundle.EditScittbfadeceRequiredMessage_scintborganismid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scintborganismController.items}"
                                           var="scintborganismidItem"
                                           itemValue="#{scintborganismidItem}"
                                           itemLabel="#{scintborganismidItem.nombre.toString()}"
                                           />
                            <f:converter binding="#{scintborganismConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{scittbfadeceController.save}" value="#{myBundle.Save}" update="display,:ScittbfadeceListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ScittbfadeceEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ScittbfadeceEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
